<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ include file="/common/incmnt.jsp"%>
<title>予想家メンテナンス編集</title>
<script type="text/JavaScript">
$(function(){
	//$("#regTipster").bind("click",regTipster_click);
	//$("#delTipster").bind("click",delTipster_click);
	$("#recountTipster").bind("click",recountTipster_click);
});

var recountTipster_click = function(e){
	query = {};
	query[REQKEY_COMMAND] = "recount";
	query["key"] = $("#key").val();
	b_ajax("/mnt/tipster",query,setResponseData);
}
</script>
</head>
<body>
<form action="${f:url('tipster')}" method="post">
<input type="submit" value="戻る"/>
</form>
<div id="messageArea"><span id="message"></span></div>
<div class="btnArea">
<a href="javascript:void(0);" id="regTipster" class="btn" ><span><fmt:message key="btn.regist"/></span></a>
<a href="javascript:void(0);" id="delTipster" class="btn" ><span><fmt:message key="btn.delete"/></span></a>
<a href="javascript:void(0);" id="recountTipster" class="btn btnMiddle" ><span>成績再集計</span></a>
</div>
<hr>
<input type="hidden" name="key" id="key" value="${f:key(tipster.key)}">
<div><label>ニックネーム</label><input type="text" name="nickname" value="${f:h(tipster.nickname)}"></div>
<div><label>役職</label><input type="text" name="post" value="${f:h(tipster.post)}"></div>
</body>
</html>
